Fibonacci BSTs: A new balancing method for binary search trees
نویسندگان
چکیده
منابع مشابه
Fibonacci BSTs: A new balancing method for binary search trees
This paper presents a newmethod to balance binary search trees, which has the following properties. (i) The only information stored for the balance is the size of every subtree. (ii) Inserting or deleting an element can be done in themost traditional way: first, the element is recursively inserted (deleted) in (from) the appropriate subtree; afterwards, a single or double rotation takes place i...
متن کاملA Fibonacci Theme on Balanced Binary Trees
In this paper we show that, when a binary tree is in a certain critical balance, there emerge the Golden Ratio and the Fibonacci numbers. The paper consists of two sections. In the first section we find some elementary balance properties of optimal binary trees with variously weighted leaves. In the second section, a basic inequality implied by the optimality of trees is in turn used to define ...
متن کاملAn Immediate Approach to Balancing Nodes of Binary Search Trees
We present an immediate approach in hoping to bridge the gap between the difficulties of learning ordinary binary search trees and their height-balanced variants in the typical data structures class. Instead of balancing the heights of the two children, we balance the number of their nodes. The concepts and programming techniques required for the node-balanced tree are much easier than the AVL ...
متن کاملUntangling the balancing and searching of balanced binary search trees
A Source code 2 A.1 Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 A.2 Searchers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 A.2.1 search tree.hpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 A.2.2 selection search tree.hpp . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
متن کاملNew Ways to Construct Binary Search Trees
We give linear-time algorithms for re-ordering and heightrestricting a binary search tree with only a small increase in cost, constructing a nearly optimal binary search tree given the rank by probability of each possible outcome, and height-restricting an optimal binary search tree when the increase in cost is restricted. Whereas most algorithms for constructing good binary search trees need t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Theoretical Computer Science
سال: 2013
ISSN: 0304-3975
DOI: 10.1016/j.tcs.2012.11.027